package com.ac.api.alarm_record.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 设备报警记录表
 * </p>
 *
 * @author dc
 * @since 2025-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AlarmRecord", description="设备报警记录表")
public class AlarmRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "报警记录ID")
    @TableId(value = "alarm_id", type = IdType.AUTO)
    private Integer alarmId;

    @ApiModelProperty(value = "关联设备（外键）")
    private Integer equipmentId;

    @ApiModelProperty(value = "类型（温度超限/良品率低）")
    private String alarmType;

    @ApiModelProperty(value = "触发值（如温度值/良品率）")
    private Float triggerValue;

    @ApiModelProperty(value = "报警时间")
    private LocalDateTime alarmTime;

    @ApiModelProperty(value = "是否处理")
    private Boolean handled;

    @ApiModelProperty(value = "处理时间")
    private LocalDateTime handledTime;

    @ApiModelProperty(value = "处理人")
    private String handledBy;


}
